﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DBControl;

namespace SellerProject
{
    public partial class ControlTaobao : TopBasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void LinkButton1_Click(object sender, EventArgs e)
        {
            Marketing mk = new Marketing(Session["sessionKey"].ToString());
        }

        protected void LinkButton2_Click(object sender, EventArgs e)
        {
            Marketing mk = new Marketing(Session["sessionKey"].ToString());
            Groups mygrps =  mk.getTaobaoGroups();
            GridView2.DataSource = mygrps;
            GridView2.DataBind();
        }

        protected void LinkButton3_Click(object sender, EventArgs e)
        {
            Marketing mk = new Marketing(Session["sessionKey"].ToString());
            try
            {
                mk.delTaobaoGroup(Convert.ToInt64(TextBox1.Text));
                AlertMessage("已删除");
            }
            catch
            {
                AlertMessage("出错！");
            }
        }
    }
}